package com.yixing.tech.system.service;

import com.yixing.tech.common.base.BusinessException;
import com.yixing.tech.common.vo.s3.UserVO;
import com.yixing.tech.system.po.SystemUser;

/**
 * @author yixing tech
 * at 2022/3/9
 * describe：
 */
public interface IPortalService {
    UserVO login(UserVO vo, String appType) throws BusinessException;

    /**
     * web 登录
     */
    UserVO queryLoginInfo(SystemUser systemUser) throws BusinessException;

    /**
     * web 登录
     *
     * @param vo
     * @return
     * @throws BusinessException
     */
    UserVO loginWeb(UserVO vo) throws BusinessException;

    /**
     * web 登录
     *
     * @return
     * @throws BusinessException
     */
    UserVO loginRefresh(String userId) throws BusinessException;
    UserVO loginH5(UserVO vo) throws BusinessException;
    /**
     * 小程序登录
     *
     * @param vo
     * @return
     * @throws BusinessException
     */
    UserVO loginApplet(UserVO vo) throws BusinessException;

    /**
     * 下钻登录（分管）
     *
     * @param adminId
     * @return
     * @throws BusinessException
     */
    UserVO downLogin(String adminId, UserVO loginUser) throws BusinessException;

    /**
     * 微信登录
     *
     * @param jsCode
     * @param tenantId
     * @return
     * @throws BusinessException
     */
    UserVO wxLogin(String jsCode, String tenantId, String roleId) throws BusinessException;


}
